# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.CloudSupport.V2beta.Model.CompositeMedia do
  @moduledoc """
  # gdata.* are outside protos with mising documentation

  ## Attributes

  *   `blobRef` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `blobstore2Info` (*type:* `GoogleApi.CloudSupport.V2beta.Model.Blobstore2Info.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `cosmoBinaryReference` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `crc32cHash` (*type:* `integer()`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `inline` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `length` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `md5Hash` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `objectId` (*type:* `GoogleApi.CloudSupport.V2beta.Model.ObjectId.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `path` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `referenceType` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `sha1Hash` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :blobRef => String.t() | nil,
          :blobstore2Info => GoogleApi.CloudSupport.V2beta.Model.Blobstore2Info.t() | nil,
          :cosmoBinaryReference => String.t() | nil,
          :crc32cHash => integer() | nil,
          :inline => String.t() | nil,
          :length => String.t() | nil,
          :md5Hash => String.t() | nil,
          :objectId => GoogleApi.CloudSupport.V2beta.Model.ObjectId.t() | nil,
          :path => String.t() | nil,
          :referenceType => String.t() | nil,
          :sha1Hash => String.t() | nil
        }

  field(:blobRef)
  field(:blobstore2Info, as: GoogleApi.CloudSupport.V2beta.Model.Blobstore2Info)
  field(:cosmoBinaryReference)
  field(:crc32cHash)
  field(:inline)
  field(:length)
  field(:md5Hash)
  field(:objectId, as: GoogleApi.CloudSupport.V2beta.Model.ObjectId)
  field(:path)
  field(:referenceType)
  field(:sha1Hash)
end

defimpl Poison.Decoder, for: GoogleApi.CloudSupport.V2beta.Model.CompositeMedia do
  def decode(value, options) do
    GoogleApi.CloudSupport.V2beta.Model.CompositeMedia.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.CloudSupport.V2beta.Model.CompositeMedia do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
